package com.lh.feign;

import com.lh.commonutils.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author YMS
 * @date 2021/6/9
 */
@FeignClient(value = "service-vod")
@Component
public interface VodFeign {


    /**
     *  @ApiOperation(value = "根据阿里云视频id删除阿里云上的视频")
     * @param videoSourceId
     * @return
     */
    @DeleteMapping("/service_vod/removeALYVideo/{videoSourceId}")
    public R removeALYVideo(@PathVariable("videoSourceId") String videoSourceId);


    /**
     * 根据阿里云视频id删除阿里云上的视频
     * @param videoIdList
     * @return
     */
    @DeleteMapping("/service_vod/delete-batch")
    public R deleteBatch(@RequestParam("videoIdList") List<String> videoIdList);
}
